﻿using ManYanPrism.Shell.Views;
using ManYanPrism.Shell.Views.Device;
using ManYanPrism.Shell.Views.User;
using Prism.DryIoc;
using Prism.Ioc;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace ManYanPrism.Shell
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App
    {
        protected override Window CreateShell()
        {
           return Container.Resolve<Views.Main>();
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<DeviceList>();
            containerRegistry.RegisterForNavigation<Nav>();
            containerRegistry.RegisterForNavigation<User>();
        }
    }
}
